package com.glink.manage.vo.equipinfo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class NodeVO {

    @ApiModelProperty(value = "主键")
    private String objId;

    @ApiModelProperty(value = "类别")
    private String type;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "点位计数")
    private Integer pointCount = 0;
    
    @ApiModelProperty(value = "是否存在子节点, 仅懒加载时会设值")
    private Boolean hasChild;

    @ApiModelProperty(value = "父节点主键")
    private String pId;

    @ApiModelProperty(value = "上级设备ID（部件存在）")
    private String mainEquipId;

    @ApiModelProperty(value = "上级设备类型ID（部件存在）")
    private String mainEquipTypeId;
    
    @ApiModelProperty(value = "子节点列表, 查询全量设备树时设值")
    private List<NodeVO> childNodeList;

    @ApiModelProperty(value = "无人机点位计数")
    private Integer dronePointCount = 0;
}
